<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<title>Lucar 登录</title>
  </head>
<link rel="stylesheet" type="text/css" href="lucar-css/head-css.css" />
<link rel="stylesheet" type="text/css" href="lucar-css/login-css.css" />

<body>
	<div id="head">
    	<div id="h-logo">
        	<img src="lucar-image/logo.png" class="hl">
        </div>
        <div id="h-right">
        	<span id="hr-useCar" class="hr-span" onmouseover="headimg(1);" onMouseOut="headimg(2);">
            	<img id="uCOut" src="lucar-image/useCar-Out.png" class="hr-image" style="display:block">
            	<img id="uCOn" src="lucar-image/useCar-On.png" class="hr-image" style="display:none">
            </span>
            <span id="hr-aboutUs" class="hr-span" onmouseover="headimg(3);" onMouseOut="headimg(4);">
            	<img id="aUOut" src="lucar-image/aboutUs-Out.png" class="hr-image" style="display:block">
            	<img id="aUOn" src="lucar-image/aboutUs-On.png" class="hr-image" style="display:none">
            </span>
            <span id="mainJsp" class="button" onMouseOver="headbutton(1);" onMouseOut="headbutton(2);" onclick="window.location.href='index.jsp'"><b class="hr-text" >主页</b></span>
        </div>
    </div>
    <div id="login-body">
    	<s:form id="lb-list" action="Login" namespace="/">
        	<img src="lucar-image/login-image/APPlogo.png" id="APPlogo" />
            <h2>扫一扫关注Lucar微信公众号</h2>
            <div id="loginwindow">
            	<div class="textwindow">
            		<span id="ss" style=" color:red;font-size:14px;">${message}</span>
                	<p>账号：</p>
                	<div class="textwindow2">
                		<s:textfield name="user.userId" label="账号" id="inputId"/>
                	</div>
                </div>
    			<div class="textwindow">
                	<p>密码：</p>
                	<div class="textwindow2">
                		<s:password name="user.upassword" label="密码" id="inputPsd"/>
                	</div>
                </div>
    			<s:submit value="登陆" id="logincss"/>
                <img src="lucar-image/login-image/car.png" id="carlogo" />
            </div>
        </s:form>
    	<img src="lucar-image/login-image/loginicon.jpg" width="100px" height="60px" style="position:absolute; left:435px;"/>
    </div>
    <div id="d3" style="display:none;position:absolute;width:100px;height:100px;"><span id="msg" >${relog}</span></div>
    <div id="Fpassword"><a href="FindPSW.jsp">忘记密码？</a></div>
</body>
<script src="lucar-script/head-script.js"></script>
<script src="lucar-script/jquery-3.2.1-jquery.min.js"></script>
<script type="text/javascript">
window.onload = function(){
	function box(){
		var oBox = document.getElementById("login-body");
		var L1 = oBox.offsetWidth;
		var Left = (document.documentElement.clientWidth-L1)/2;
		oBox.style.left = Left+'px';
	}
	box();
	window.onresize = function(){
        box();
    }
}	
$(document).ready(function(){
	if($("#msg").text()=="修改成功请重新登陆"){
		alert("修改成功请重新登陆");
		removeAttribute("relog");
	}
})
</script>

</html>

